package com.wyd.command.cmd;


import com.wyd.command.receiver.Window;

/**
 * @author Yudi Wang
 * @date 2022/1/27 16:32
 */
public class WindowSwitchOnCommand implements Command {
    private Window window;

    public WindowSwitchOnCommand(Window window) {
        this.window = window;
    }

    public void execute() {
        window.switchOn();
    }

    public void undo() {
        window.switchOff();
    }
}
